Release 10.1A: OpenEdge Development:
Java Open Clients


Connection object

Progress provides a Connection object, com.progress.open4gl.javaproxy.Connection. This Connection object provides a means to store AppServer connection information, which can be passed to the AppObject constructor when connecting to the AppServer.

The Connection object has the following constructor methods.

The following constructor specifies the AppServer connection information (url), user ID, password, and information required by the AppServer application at connection time:

Syntax
public Connection(String url, String userid, String password, 
     String AppServer-info) 

For more information on the AppServer URL connection parameter format and default connection information, see the sections on connecting to an AppServer using a URL in OpenEdge Application Server: Developing AppServer Applications .

The following constructor specifies the user ID, password, and information required by the AppServer application at connection time:

Syntax
public Connection(String userid, String password, String appserver-info) 

The constructor above uses default AppServer connection information. This defaults the URL to AppServer://localhost:5162/appService, where appService is the AppService setting specified on the General tab of the Generate dialog box in ProxyGen.

Before you establish a connection, you can set properties for the Connection object. See Chapter 7, "Accessing Proxy Properties," for more information on setting and updating Connection object properties.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095